<?php

   date_default_timezone_set('Australia/Melbourne');
$dateToday=date("Y-m-d");
$csvsfolder = "./csvs/";
$filename="testuploadcsv.csv";
$filename=$_GET['filename'];


$orgFile = fopen($csvsfolder.$filename,"r");
$counter=0;
$abnormal = 1;
$numberExist = 0;



?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo $dateToday; ?> Waiting For Post </title>
</head>

<body style="margin:0;">
<H2>POST SLIPS on <?php echo $dateToday;?> for <?php echo $filename ?>   Sign By :_____________</H2>

<?php
while(($lineData = fgetcsv($orgFile,0))!= FALSE){
	if($counter>0){
	$numberExist = 0;
	$abnormal = 1;
echo $lineData[0];
echo $lineData[1];
echo $lineData[2];
echo "<br />";   
	?>
  
  
<?php
	}
	$counter++;
}
?>


</body>
</html>